/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assign2.dipviolation.Impl;

/**
 *
 * @author Sisanda
 */
public class MakeTransation 
{
    AtmImpl resourc;
    AtmImpl destint;
    double value;
    
    public void Transaction()
    {
        resourc.deposit(value);
        destint.withdraw(value);
    }
    public void setResource(AtmImpl resourc)
    {
        this.resourc = resourc;
    }
    public AtmImpl getResource()
    {
        return resourc;
    }
    public void setDestin(AtmImpl destin)
    {
        this.destint = destin;
    }
    public AtmImpl getDestin()
    {
        return destint;
    }
    public void setValue(double val)
    {
        this.value = val;
    }
    public double getValue()
    {
        return value;
    }
    
}
